<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link
      rel="stylesheet"
      href="http://at.alicdn.com/t/c/font_4544780_823xx4ymfa5.css"
    />
    <link
      rel="stylesheet"
      href="../CSS/1100px.css"
      media="(max-width:1100px)"
    />
    <link rel="stylesheet" href="../CSS/index.css" media="(min-width:1100px)" />
    <script
      src="../JS/index.js"
      type="text/javascript"
      defer
      media="(max-width:1100px)"
    ></script>

    <!-- <style>
      @media screen and (max-width: 1100px) {
        /* .nav {
          height: 300px;
        } */
        .nav > div > span {
          display: block;
          position: absolute;
          top: 15px;
          right: 0;
          cursor: pointer;
        }
        li {
          clear: left;
          margin-bottom: 15px;
        }
        ul {
          display: none;
          position: absolute;
          top: 50px;
        }
      }
    </style> -->
  </head>
  <body>
    <!-- 版心1400px  外边框1626px -->
    <div class="container">
      <div class="nav">
        <div>
          <img src="../IMG/logo-dark.png" />
          <ul>
            <li>
              <a href="#" class="hover">Home</a>
            </li>
            <li><a href="#">About</a></li>
            <li><a href="#">Services</a></li>
            <li>
              <a href="#">Shop<span class="iconfont icon-below-s"></span></a>
            </li>
            <li>
              <a href="#"
                >Portfolio<span class="iconfont icon-below-s"></span
              ></a>
            </li>
            <li>
              <a href="#">Blog<span class="iconfont icon-below-s"></span></a>
            </li>
            <li><a href="#">Contact</a></li>
          </ul>
          <span class="iconfont icon-1"></span>
        </div>
      </div>
    </div>
  </body>
  <script>
    // let oSpan = document.querySelectorAll("span");
    // let oUl = document.querySelector("ul");
    // let oDov = document.querySelector(".nav");
    // let screenWidth = document.body.clientWidth;
    // console.log(screenWidth);
    // if (screenWidth < 1100) {
    //   console.log(document.body.clientWidth);
    //   oSpan[oSpan.length - 1].onclick = function (e) {
    //     e.stopPropagation();
    //     oDov.style.height = 300 + "px";
    //     oUl.style.display = "block";
    //     document.onclick = function () {
    //       oUl.style.display = "none";
    //       oDov.style.height = 48 + "px";
    //     };
    //   };
    // }
  </script>
</html>
